<template>
  <el-tag v-if="props.status === 0" type="success">{{ props.format[props.status] }}</el-tag>
  <el-tag v-else type="danger">{{ props.format[props.status] }}</el-tag>
</template>

<script setup name="TcStatus">
const props = defineProps({
  status: Number,
  format: {
    type: Object,
    default() {
      return ['启用', '停用']
    }
  }
})
</script>

